home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1997
/
MacHack 1997.toast
/
Hacks
/
Hacks ’96
/
PredatorPrey
/
HelpDrawProc.c
< prev
next >
Wrap
Text File
|
1996-06-22
|
1KB
|
53 lines
/************************************************************************************/
/* HelpDrawProc */
/* This routine should be invoked between a BeginUpdate and EndUpdate sequence, */
/* usually after an Update event in the main event loop. */
/************************************************************************************/
#include "HelpDrawProc.h"
#ifndef __C14__
#include "C14 Calculator.h"
#endif
#include "myActionProc.h"
void HelpDrawSeg() {} /* for reference in "UnloadSeg()" calls */
short HelpDrawProc ()
{
int HelpDrawRetCode = 0;
SetPort (windTbl[1].windPtr); /* set as the grafPort */
myActionProc (windTbl[1].windCntlH[0], 0);
DrawControls (windTbl[1].windPtr); /* draw un-hidden controls */
FrameRect (&(**windTbl[1].windCntlH[0]).contrlRect); /* frame the hidden one */
TEUpdate (&(**windTbl[1].windTEH[0]).viewRect,
windTbl[1].windTEH[0]);
LUpdate ((*(**helpList).port).visRgn, helpList);
workRect = (**windTbl[1].windTEH[0]).viewRect;
InsetRect (&workRect, -1, -1);
FrameRect (&workRect);
workRect = (**helpList).rView;
InsetRect (&workRect, -1, -1);
FrameRect (&workRect);
workRect.bottom = workRect.top;
workRect.top = workRect.bottom -20;
workRect.right += 16;
TextFont(geneva);
TextFace(bold);
TextSize(12);
TextBox ("Table of Contents", 17, &workRect, teJustCenter);
TextFont(monaco);
TextFace(NIL);
TextSize(9);
return HelpDrawRetCode;
}